<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>留言列表 -- HoverTree</title>
    <style>
        .keleyitable {
            width: 800px;
        }

        .keleyitable table, td, th {
            border: 1px solid green;margin-top:10px;
        }
        .klytd {width:100px;text-align:right
        }
        .hvttd {
            width:500px}
    </style>

</head>
<body>
<div style="margin:0px auto;" class="keleyitable"><h2>留言列表</h2>

    @foreach($demoData as $k =>$v)
        <table>
            <tr><td class="klytd">留言时间：</td><td class="hvttd">1995.7</td></tr>
            <tr><td class="klytd">留言人：</td><td class ="hvttd">{{ $v->username  }}</td></tr>
            <tr><td class="klytd">标题：</td><td class ="hvttd">{{ $v->title }}</td></tr>
            <tr><td class="klytd">内容：</td><td class ="hvttd">{{ $v->content }}</td></tr>
            <td><a href="{{ url('/admin/demo/edt/').'/'.$v->id }}">修改</a>
                <a  class="del" href="{{ url('/admin/demo/del/').'/'.$v->id }}">删除</a>
            </td>
        </table>
    @endforeach

    <a href="{{ url('/admin/demo/add') }}">添加</a>
</div>

</body>
<script src="__COMMON__jquery-1.7.2.min.js"></script>

</html>